// house_pkg/pages/building/index.ts
Page({
  onLoad({
    point
  }) {
    this.fake(decodeURIComponent(point))
  },
  fake(point) {
    // 总共多少栋
    const size = wx.utils.getRandomIntInclusive(1, 10)
    const type = size > 5 ? '号楼' : '栋'
    this.setData({
      point,
      size,
      type,
    })
  },
  goRoom(ev) {
    wx.navigateTo({
      url: `/house_pkg/pages/room/index?point=${this.data.point}&building=${ev.mark.building}`,
    })
  }
})